package com.health.memberbackstage.pojo.R;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(200,"SUCCESS"),
    FAIL(400,"服务器繁忙，请稍后再试"),
    NO_LOGIN(401,"未登录"),
    NO_USER(402,"用户名或密码错误"),
    NO_ROLE(403,"没权限"),
    FAILED_ADD(501,"添加失败"),
    FAILED_EDIT(502,"修改失败"),
    FAILED_DEL(503,"删除失败"),
    ILLEGAL_TOKEN(504,"非法token"),
    OVERDUE_TOKEN(505,"逾期token"),
    ;

    private int code;
    private String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
